<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>重复性渐变</title>
    <style>
        .linear {
            width: 300px;
            height: 200px;
            margin: 20px auto;
            /* 重复线性渐变 */
            background-image: repeating-linear-gradient(red 0, green 40px, orange 80px);
        }

        .circle {
            width: 300px;
            height: 300px;
            margin: 20px auto;
            border-radius: 50%;
            /* 重复线性渐变 */
            background-image: repeating-radial-gradient(red 0, green 30px, orange 40px);
        }
    </style>
</head>
<body>
    <div class="linear"></div>
    <div class="circle"></div>
</body>
</html>